package tc.jv.task10;

import tc.jv.task4.Vector;

public class ThreadReader extends Thread
{
	
	Vector vector;
	
	// CONSTRUCTORS
	
	public ThreadReader(Vector v)
	{
		vector = v;
	}
	
	// METHODS
	
	public void run()
	{
//		setPriority(MIN_PRIORITY);
		for (int i = 0; i < vector.size(); i++)
		{
			System.out.printf("Reading %f from %d\n", vector.get(i), i);
		}
	}
	
}
